package kingiis.utils.simpleapp;

import android.app.Activity;
import android.os.*;
import android.support.v4.app.FragmentActivity;

import butterknife.ButterKnife;
import kingiis.utils.simpleapp.anno.Anno;

/**
 * Created by King on 2018/1/4 0004.
 */

public abstract class BFraAct  extends FragmentActivity{
        public Activity context = this;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Anno.bind(this);
            ButterKnife.inject(this);
            initListener();
            initView();
        }

        @Override
        protected void onResume() {
            super.onResume();
        }

        @Override
        protected void onDestroy() {
            onFinish().removeCallbacksAndMessages(null);
            super.onDestroy();
        }

        public abstract void initView();

        public abstract void initListener();

        public abstract android.os.Handler onFinish();
    }
